﻿/*****************************************************************************/
// domElement mock up - remove when MS get this working
//-----------------------------------------------------------------------------
/*
function DoDomElement()
{
    var s = "domElement = function(){};\ndomElement.prototype = \n";
    s += ajax.lang.toJsonString($(document, "testDiv"), true, false);   
    s = s.replace(/\n\r/, "");
    ajax.debug.writeToNewWindow(s);            
}

function DoDomDocument()
{
    var s = "domDocument = function(){};\ndomDocument.prototype = \n";
    s += ajax.lang.toJsonString(document, true, false);
    ajax.debug.writeToNewWindow(s);
}

function DoStyle()
{
    var s = "domStyle = function(){};\ndomStyle.prototype = \n";
    s += ajax.lang.toJsonString($(document, "testDiv").style, true, false);
    ajax.debug.writeToNewWindow(s);
}

function DoWindow()
{
    var s = "domWindow = function(){};domWindow.prototype = \n";
    s += ajax.lang.toJsonString(ajax.lang.getDocumentWindow(document), true, false);
    ajax.debug.writeToNewWindow(s);
}
*/


domStyle = function(){};
domStyle.prototype = 
{
clear: "",

posRight: 0,

backgroundRepeat: "",

borderTopStyle: "",

cssFloat: "",

marginTop: "",

fontVariant: "",

listStylePosition: "",

backgroundPositionX: "",

lineHeight: "",

scrollbarHighlightColor: "",

overflowX: "",

paddingLeft: "",

maxWidth: "",

borderLeftWidth: "",

padding: "",

listStyleType: "",

borderLeftColor: "",

display: "",

textDecorationLineThrough: false,

marginBottom: "",

textKashidaSpace: "",

borderCollapse: "",

textDecorationBlink: false,

scrollbarFaceColor: "",

backgroundAttachment: "",

borderRightStyle: "",

fontStyle: "",

textUnderlinePosition: "",

textIndent: "",

textDecorationOverline: false,

msInterpolationMode: "",

layoutGridMode: "",

right: "",

pageBreakAfter: "",

background: "",

filter: "",

borderColor: "",

posWidth: 0,

left: "",

minHeight: "",

accelerator: "false",

rubyOverhang: "",

layoutGrid: "",

visibility: "",

verticalAlign: "",

borderBottomWidth: "",

scrollbarShadowColor: "",

textTransform: "",

lineBreak: "",

scrollbarArrowColor: "",

margin: "",

borderBottomColor: "",

borderTopWidth: "",

behavior: "",

letterSpacing: "",

layoutFlow: "",

font: "",

borderTopColor: "",

paddingBottom: "",

whiteSpace: "",

overflow: "",

borderBottomStyle: "",

cssText: "",

width: "",

clip: "",

cursor: "",

fontSize: "",

imeMode: "",

backgroundPosition: "",

color: "",

paddingRight: "",

textAutospace: "",

pageBreakBefore: "",

direction: "",

bottom: "",

fontFamily: "",

unicodeBidi: "",

posHeight: 0,

posBottom: 0,

borderRightColor: "",

styleFloat: "",

textJustify: "",

backgroundColor: "",

posTop: 0,

zIndex: 0,

borderLeftStyle: "",

zoom: "",

listStyleImage: "",

wordSpacing: "",

textDecoration: "",

borderBottom: "",

layoutGridChar: "",

tableLayout: "",

border: "",

textAlign: "",

backgroundPositionY: "",

backgroundImage: "",

borderWidth: "",

borderTop: "",

textJustifyTrim: "",

minWidth: "",

scrollbar3dLightColor: "",

fontWeight: "",

scrollbarDarkShadowColor: "",

textAlignLast: "",

posLeft: 0,

maxHeight: "",

borderRightWidth: "",

paddingTop: "",

wordBreak: "",

textOverflow: "",

rubyPosition: "",

borderStyle: "",

wordWrap: "",

position: "",

overflowY: "",

textDecorationUnderline: false,

layoutGridLine: "",

top: "",

textDecorationNone: false,

writingMode: "",

height: "",

scrollbarTrackColor: "",

listStyle: "",

borderRight: "",

scrollbarBaseColor: "",

marginRight: "",

marginLeft: "",

layoutGridType: "",

textKashida: "",

rubyAlign: "",

borderLeft: "",

zoom: 0

}
domStyle.cast = function(obj)
{///<returns type="domStyle"/>
    return obj;
}


domElement = function(){};
domElement.prototype = 
{
setAttribute: function(attributeName, value){},
removeAttribute: function(attributeName){},
appendChild: function(ele)
{///<summary>Appends the passed element to this element</summary>
},
language: "",
width: 0,
height: 0,
innerHTML: "",
value: "",
scrollHeight: 0,

isTextEdit: false,

currentStyle: null,

document: null,

onmouseup: null,

oncontextmenu: null,

isMultiLine: true,

clientHeight: 0,

onrowexit: null,

onbeforepaste: null,

onactivate: null,

scrollLeft: 0,

lang: "",

onmousemove: null,

onmove: null,

onselectstart: null,

parentTextEdit: null,

oncontrolselect: null,

canHaveHTML: true,

onkeypress: null,

oncut: null,

onrowenter: null,

onmousedown: null,

onpaste: null,

className: "",

id: "",

onreadystatechange: null,

onbeforedeactivate: null,

hideFocus: false,

dir: "",

isContentEditable: false,

onkeydown: null,

clientWidth: 0,

onlosecapture: null,

parentElement: null,

ondrag: null,

ondragstart: null,

oncellchange: null,

recordNumber: null,

onfilterchange: null,

onrowsinserted: null,

ondatasetcomplete: null,

onmousewheel: null,

ondragenter: null,

onblur: null,

onresizeend: null,

onerrorupdate: null,

onbeforecopy: null,

ondblclick: null,

scopeName: "HTML",

onkeyup: null,

onresizestart: null,

onmouseover: null,

onmouseleave: null,

outerText: "",

innerText: "",

onmoveend: null,

tagName: "DIV",

title: "",

offsetWidth: 1639,

onresize: null,

contentEditable: "inherit",

runtimeStyle: null,

filters: null,

ondrop: null,

onpage: null,

onrowsdelete: null,

tagUrn: "",

offsetLeft: 0,

clientTop: 0,

style: domStyle.prototype,

onfocusout: null,

clientLeft: 0,

ondatasetchanged: null,

canHaveChildren: true,

ondeactivate: null,

isDisabled: false,

onpropertychange: null,

ondragover: null,

onhelp: null,

ondragend: null,

onbeforeeditfocus: null,

disabled: false,

onfocus: null,

behaviorUrns: null,

accessKey: "",

onscroll: null,

onbeforeactivate: null,

onbeforecut: null,

readyState: "complete",

all: null,

sourceIndex: 8,

onclick: null,

scrollTop: 0,

oncopy: null,

onfocusin: null,

tabIndex: 0,

onbeforeupdate: null,

outerHTML: "",

innerHTML: "",

ondataavailable: null,

offsetHeight: 0,

onmovestart: null,

onmouseout: null,

scrollWidth: 1639,

offsetTop: 0,

onmouseenter: null,

onlayoutcomplete: null,

offsetParent: null,

onafterupdate: null,

ondragleave: null,

children: null,

parentNode: null,

ownerDocument: null,

firstChild: null,

lastChild: null,

childNodes: null,

nextSibling: null,

align: "",

dataFormatAs: "",

dataSrc: "",

nodeName: "DIV",

noWrap: false,

nodeValue: null,

nodeType: 1,

previousSibling: null,

attributes: null,

dataFld: ""

}
domElement.cast = function(obj)
{///<returns type="domElement"/>
    return obj;
}


domDocument = function(){};
domDocument.prototype = 
{
createElement: function(elementTagName)
{///<returns type="domElement"/>
},
namespaces: null,

lastModified: "01/24/2008 18:50:00",

parentNode: null,

nodeType: 9,

fileCreatedDate: "01/24/2008",

onbeforeeditfocus: null,

bgColor: "#ffffff",

oncontextmenu: null,

onrowexit: null,

embeds: null,

scripts: null,

onactivate: null,

mimeType: "HTML Document",

alinkColor: "#0000ff",

onmousemove: null,

onselectstart: null,

oncontrolselect: null,

body: domElement.prototype,

protocol: "HyperText Transfer Protocol",

onkeypress: null,

onrowenter: null,

onmousedown: null,

vlinkColor: "#800080",

URL: "",

onreadystatechange: null,

doctype: null,

onbeforedeactivate: null,

applets: null,

fileModifiedDate: "01/24/2008",

onmouseover: null,

dir: "",

media: "",

defaultCharset: "windows-1252",

firstChild: null,

plugins: null,

onafterupdate: null,

ondragstart: null,

oncellchange: null,

cookie: "",

documentElement: null,

nextSibling: null,

nameProp: "Untitled Page",

referrer: "",

ondatasetcomplete: null,

onmousewheel: null,

onerrorupdate: null,

onselectionchange: null,

lastChild: null,

ondblclick: null,

onkeyup: null,

location: null,

forms: null,

title: "Untitled Page",

onrowsinserted: null,

previousSibling: null,

compatMode: "CSS1Compat",

onmouseup: null,

onkeydown: null,

onrowsdelete: null,

onfocusout: null,

fgColor: "#000000",

ondatasetchanged: null,

onmouseout: null,

parentWindow: null,

nodeName: "#document",

onpropertychange: null,

onstop: null,

onhelp: null,

linkColor: "#0000ff",

onbeforeactivate: null,

images: null,

readyState: "complete",

frames: null,

all: null,

onbeforeupdate: null,

onclick: null,

childNodes: null,

onfocusin: null,

anchors: null,

selection: null,

fileUpdatedDate: "01/01/1601",

domain: "localhost",

security: "",

fileSize: "530",

ownerDocument: null,

ondataavailable: null,

styleSheets: null,

nodeValue: null,

attributes: null,

activeElement: null,

implementation: null,

links: null,

URLUnencoded: "",

ondeactivate: null

}

domDocument.cast = function(obj)
{///<returns type="domDocument"/>
    return obj;
}


domWindow = function(){};
domWindow.prototype = 
{

onbeforeunload: null,

onafterprint: null,

top: null,

location: null,

parent: null,

offscreenBuffering: "auto",

frameElement: null,

onerror: null,

screen: null,

event: null,

clipboardData: null,

onresize: null,

defaultStatus: "",

onblur: null,

window: null,

onload: null,

onscroll: null,

screenTop: 172,

onfocus: null,

Option: null,

length: 0,

onbeforeprint: null,

frames: null,

self: null,

clientInformation: null,

XMLHttpRequest: null,

external: null,

screenLeft: 188,

opener: undefined,

onunload: null,

document: domDocument.prototype,

closed: false,

history: null,

Image: null,

navigator: null,

status: "",

onhelp: null,

name: "",

eventRouters: null

}
domWindow.cast = function(obj)
{///<returns type="domWindow"/>
    return obj;
}